package com.internetCafes.spms.web.sys.model;

import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2020-05-19 10:24:40
 */
public class SmsLog implements Serializable {

	private static final long serialVersionUID = 1L;
	
    /**
     * 主键
     */
	private Long id;

    /**
     * 短信类型
     */
	private Integer type;

    /**
     * 签名
     */
	private String sign;

    /**
     * 租户id
     */
	private Long tenantId;

    /**
     * 用户id
     */
	private Long userId;

    /**
     * 用户名称
     */
	private String userName;

    /**
     * 必填参数。手机号码。多个以英文逗号隔开
     */
	private String mobile;

    /**
     * 必填参数。发送内容（1-500 个汉字）UTF-8编码
     */
	private String content;

    /**
     * 可选参数。发送时间，填写时已填写的时间发送，不填时为当前时间发送
     */
	private Date stime;

    /**
     * 1成功 0失败
     */
	private Integer sendStatus;

    /**
     * 返回消息
     */
	private String returnMsg;


	public SmsLog(){}
	public SmsLog(Integer type, Long tenantId, Long userId, String userName, String mobile, String content, Integer sendStatus) {
		this.type = type;
		this.tenantId = tenantId;
		this.userId = userId;
		this.userName = userName;
		this.mobile = mobile;
		this.content = content;
		this.sendStatus = sendStatus;
		this.stime = new Date();
	}

	@JSONField(name = "id")
	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	@JSONField(name = "type")
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}

	@JSONField(name = "sign")
	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getSign() {
		return sign;
	}

	@JSONField(name = "tenant_id")
	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Long getTenantId() {
		return tenantId;
	}

	@JSONField(name = "user_id")
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	@JSONField(name = "user_name")
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	@JSONField(name = "mobile")
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getMobile() {
		return mobile;
	}

	@JSONField(name = "content")
	public void setContent(String content) {
		this.content = content;
	}

	public String getContent() {
		return content;
	}

	@JSONField(name = "stime")
	public void setStime(Date stime) {
		this.stime = stime;
	}

	public Date getStime() {
		return stime;
	}

	@JSONField(name = "send_status")
	public void setSendStatus(Integer sendStatus) {
		this.sendStatus = sendStatus;
	}

	public Integer getSendStatus() {
		return sendStatus;
	}

	@JSONField(name = "return_msg")
	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}

	public String getReturnMsg() {
		return returnMsg;
	}

	@Override
	public String toString() {
		return "SmsLog{" +
				"id=" + id +
				", type=" + type +
				", sign='" + sign + '\'' +
				", tenantId=" + tenantId +
				", userId=" + userId +
				", userName='" + userName + '\'' +
				", mobile='" + mobile + '\'' +
				", content='" + content + '\'' +
				", stime=" + stime +
				", sendStatus=" + sendStatus +
				", returnMsg='" + returnMsg + '\'' +
				'}';
	}
}
